import QtQuick 2.6
import Qt.labs.controls 1.0
import QtQuick.Layouts 1.1

import "../js/MyInfo.js" as MInfo
import "../lib"

Navigator {
    id: nav
    title: "个人资料"
    submitted: true
    contentHeight: Math.max(iHEIGHT * 12, height)


    ColumnLayout {
        anchors.fill: parent
        spacing: 3 * __factor__
        View {
            Layout.fillWidth: true
            Layout.preferredHeight: iHEIGHT * 1.6

            RowLayout {
                anchors.fill: parent
                anchors.margins: 9 * __factor__
                Label {
                    text: "头像"
                    Layout.alignment: Qt.AlignLeft

                }


                Image {
                    Layout.alignment: Qt.AlignRight
                    source: "../image/header-default.svg"
                    sourceSize: Qt.size(parent.height * 0.8, parent.height * 0.8)
                }

            }
        }

        View {
            Layout.fillWidth: true
            Layout.preferredHeight: iHEIGHT * 1.6
            RowLayout {
                anchors.fill: parent
                anchors.margins: 9 * __factor__
                Label {
                    text: "账户"
                    Layout.alignment: Qt.AlignLeft
                }

                Label {
                    text: "15638682936"
                    Layout.alignment: Qt.AlignRight
                }
            }
        }

        View {
            Layout.fillWidth: true
            Layout.preferredHeight: iHEIGHT * 1.6
            RowLayout {
                anchors.fill: parent
                anchors.margins: 9 * __factor__
                Label {
                    text: "昵称"
                    Layout.alignment: Qt.AlignLeft
                }

                TextField {
                    id: tfnick
                    Layout.alignment: Qt.AlignRight
                }
            }

        }

        View {
            Layout.fillWidth: true
            Layout.preferredHeight: iHEIGHT * 2
            RowLayout {
                anchors.fill: parent
                anchors.margins: 9 * __factor__

                Label {
                    text: "性别"
                    Layout.alignment: Qt.AlignLeft
                }

                RowLayout {
                    Layout.alignment: Qt.AlignRight
                    RadioButton {
                        text: qsTr("男")
                        checked: true
                    }
                    RadioButton {
                        text: qsTr("女")
                    }
                }
                }
        }


        Item {
            Layout.fillHeight: true
        }

    }




}
